﻿@using Pyramid.Mvc.Html
@model Pyramid.Models.Channel

<div class="pageContent">
	@using (Html.BeginForm("Edit", "Channel", FormMethod.Post, new {@class = "pageForm required-validate", onsubmit = "return validateCallback(this, navTabAjaxDone);"}))
	{
		<div class="pageFormContent" layouth="60">
			<p class="nowrap">
				@Html.LabelFor(model=>model.Id)
				@Html.ReadonlyFieldFor(model => model.Id)
			</p>
			<dl class="nowrap">
				@Html.LabelFor(model=>model.Name)
				@Html.TextBoxFor(model => model.Name, new {@class = "required", minlength = "2", maxlength = "20"})
			</dl>
			<p class="nowrap">
				@Html.LabelFor(model=>model.Remark)
				@Html.TextAreaFor(model => model.Remark)
			</p>
		</div>
		<div class="formBar">
			<ul>
				<li>
					<div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">保存</button>
						</div>
					</div>
				</li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	}
</div>
